﻿// =====================================================================
// <copyright file="ILog.cs" author="David R. Guindo">
// 	Copyright (C) 2014. All rights reserved.
// </copyright>
// =====================================================================
// This code is released under the terms of the Apache 2.0 license, 
// http://apache.org/licenses/LICENSE-2.0.html
// =====================================================================

namespace AppBlocks
{
    using System;

    /// <summary>
    /// </summary>
    public interface ILog
    {
        /// <summary>
        ///     Log debug message.
        /// </summary>
        /// <param name="message">The debug message to write.</param>
        /// <param name="args">The arguments to replace message values.</param>
        void LogDebug(string message, params object[] args);

        /// <summary>
        ///     Log error message.
        /// </summary>
        /// <param name="message">The error message to write.</param>
        /// <param name="args">The arguments to replace message values.</param>
        void LogError(string message, params object[] args);

        /// <summary>
        ///     Log error message.
        /// </summary>
        /// <param name="exception">The exception associated with this error.</param>
        /// <param name="message">The error message to write.</param>
        /// <param name="args">The arguments to replace message values.</param>
        void LogError(Exception exception, string message, params object[] args);

        /// <summary>
        ///     Log fatal message.
        /// </summary>
        /// <param name="message">The warning message to write.</param>
        /// <param name="args">The arguments to replace message values.</param>
        void LogFatal(string message, params object[] args);

        /// <summary>
        ///     Log message information .
        /// </summary>
        /// <param name="message">The information message to write.</param>
        /// <param name="args">The arguments to replace message values.</param>
        void LogInfo(string message, params object[] args);

        /// <summary>
        ///     Log warning message.
        /// </summary>
        /// <param name="message">The warning message to write.</param>
        /// <param name="args">The arguments to repllace message values.</param>
        void LogWarning(string message, params object[] args);
    }
}